package com.dong.ioc;

import org.springframework.beans.factory.BeanFactory;

import java.beans.ConstructorProperties;

/**
 * description
 *
 * @author Administrator 2021/08/27 10:12
 */
public class IocTest {

    public static void main(String[] args) {

        User1 user = new User1("张三", 23);
        System.out.println(user);
    }

}

class User1{
    private String name;
    private int age;

    @ConstructorProperties({"name","age"})
    public User1(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
